package cn.lj.exception;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @file:
 * @version:
 * @Description: 自定义异常
 * @author: 李津
 * @date: 2021-04-13 16:00
 * //有Args构造函数 @AllArgsConstructor
 * //没有Args构造函数 @NoArgsConstructor
 */

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusinessException extends RuntimeException{
    @ApiModelProperty(value = "状态码")
    private Integer code;

    @ApiModelProperty(value = "错误信息")
    private String errMsg;
}
